package com.cqie.secondhandtransaction.service;

import com.cqie.secondhandtransaction.DTO.*;
import com.cqie.secondhandtransaction.controller.params.ProductTypeParam;
import com.cqie.secondhandtransaction.entity.ProductInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gdy
 * @since 2025-02-10
 */
public interface ProductInfoService extends IService<ProductInfo> {

    DataList<ProductInfo> getProductByTypeIds(ProductTypeParam param);

    ProductInfoDTO getProductDetail(Integer id);

    void saveProduct(ProductInfoAddOrEditDTO addDTO, List<MultipartFile> pictures);

    void auditProduct(AuditProductDTO dto);

    void deleteProduct(Integer id);

    DataList<ProductInfo> getUserProductInfo(StatusDTO param);
}
